home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 015a / tsbat30.zip / testansi.bat < prev    next >
DOS Batch File  |  1991-11-09  |  768b  |  26 lines

  1. echo off
  2. echo ┌───────────────────────────────────────────────────┐
  3. echo │ Test if a screen driver has been loaded or not    │
  4. echo │ By Prof. Timo Salmi, ts@chyde.uwasa.fi, 9-Nov-91  │
  5. echo └───────────────────────────────────────────────────┘
  6. echo.
  7.  
  8. rem Requires the isansi.exe program at path
  9. set _found=
  10. if exist isansi.exe set _found=yes
  11. for %%d in (%path%) do if exist %%d\inansi.exe set _found=yes
  12. if not "%_found%"=="yes" goto _no_isansi
  13.  
  14. isansi
  15. if errorlevel==1 if not errorlevel==2 echo No ansi-type screen driver is available
  16. if errorlevel==0 if not errorlevel==1 echo An ansi-type screen driver is available
  17. goto _out
  18.  
  19. :_no_isansi
  20. echo ISANSI.EXE must be in the present directory or at path.
  21. goto _out
  22.  
  23. :_out
  24. set _found=
  25. echo on
  26.